package factory2;

/**
 * @Author: 582895699@qq.com
 * @Desctription: 抽象工厂模式
 * @Date: Created in 2021/12/10 18:23
 */
public class Client {

    public static void main(String[] args) {
        AbstractCreator creator = new Create1();
        creator.createProductA().doSomething();
        creator.createProductB().doSomething();

        AbstractCreator creator1 = new Create2();
        creator1.createProductA().doSomething();
        creator1.createProductB().doSomething();
    }
}
